//
//  WBBaseViewController.m
//  OC版新浪微博
//
//  Created by chenguanglei on 16/11/27.
//  Copyright © 2016年 itheima. All rights reserved.
//

#import "WBBaseViewController.h"
#import "WBLoginView.h"

@interface WBBaseViewController ()<WBLoginViewDelegate>

@property(nonatomic,copy) NSString *iconImageView;
@property(nonatomic,copy) NSString *messageLabel;
@property(nonatomic,assign) BOOL animationView;

@property (nonatomic,weak)WBLoginView *loginView;

@end

@implementation WBBaseViewController

-(instancetype)initWithStyle:(UITableViewStyle)style{

    if (self = [super initWithStyle:style]) {
        
       [self setupUI];
        
    }
    return self;
}

- (void)iconImage:(nonnull NSString *)iconImage message:(nonnull NSString *)messageTitle isAnimation:(BOOL)isHidden{

    [_loginView iconImage:iconImage message:messageTitle isAnimation:isHidden];

}


- (void)loadView{

//    [super loadView];
    
    WBLoginView *loginView = [[WBLoginView alloc]init];
    
    loginView.delegate = self;
    
    self.view = loginView;
    
    _loginView = loginView;
}



#pragma mark - WBLoginViewDelegate
- (void)loginViewDidSelectButton:(UIButton *)button{

    if (button.tag) {
        
        NSLog(@"登陆");
        
    }else{
    
        NSLog(@"注册");
    }
}



- (void)setupUI{

}


@end
